package com.xjz.service;

import com.xjz.model.entity.PostThumb;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjz.model.entity.User;

/**
* @author 86135
* @description 针对表【post_thumb(帖子点赞)】的数据库操作Service
* @createDate 2025-08-02 15:49:55
*/
public interface PostThumbService extends IService<PostThumb> {

    /**
     * 点赞
     * @param postId
     * @param loginUser
     * @return
     */
    Integer doPostThumb(Long postId, User loginUser);

    /**
     * 帖子点赞（内部服务）
     * @param userId
     * @param postId
     * @return
     */
    Integer doPostThumbInner(Long userId, Long postId);
}
